import request from '@/utils/request'

// 查询人员导入主列表
export function listEmployeeImportBase(query) {
  return request({
    url: '/erecord/employeeImportBase/list',
    method: 'get',
    params: query
  })
}

// 查询人员导入主详细
export function getEmployeeImportBase(batchNo) {
  return request({
    url: '/erecord/employeeImportBase/' + batchNo,
    method: 'get'
  })
}

// 新增人员导入主
export function addEmployeeImportBase(data) {
  return request({
    url: '/erecord/employeeImportBase',
    method: 'post',
    data: data
  })
}

// 修改人员导入主
export function updateEmployeeImportBase(data) {
  return request({
    url: '/erecord/employeeImportBase',
    method: 'put',
    data: data
  })
}

// 删除人员导入主
export function delEmployeeImportBase(batchNo) {
  return request({
    url: '/erecord/employeeImportBase/' + batchNo,
    method: 'delete'
  })
}

export function importData(data) {
  return request({
    url: '/erecord/employeeImportBase/importData',
    method: 'post',
    data: data
  })
}
